package pojo;

import java.io.Serializable;
import java.util.Date;

public class Oldman implements Serializable {
    private Integer oldmanId;

    private String oldmanNo;

    private String userName;

    private String oldName;

    private Integer sex;

    private String oldPhone;

    private String birthday;

    private Integer oldAge;

    private String oldIdCard;

    private String oldAddressBdGps;

    private String oldAddress;

    private Integer oldType;

    private Integer oldMonIncome;

    private Integer economicSource;

    private Integer mStatus;

    private Integer nation;

    private Integer oldEctLel;

    private String chronicDis;

    private String crcDisOther;

    private String egNamea;

    private String egPhonea;

    private String egaIdCard;

    private String egaAddress;

    private Integer relationshipa;

    private String egNameb;

    private String egPhoneb;

    private Integer oldHeadPicId;

    private String registryTime;

    private Integer status;

    private Integer homeId;

    private Integer valid;

    private Integer createId;

    private Date createTime;

    private Date modifyTime;

    private Long modifier;

    private static final long serialVersionUID = 1L;

    public Integer getOldmanId() {
        return oldmanId;
    }

    public void setOldmanId(Integer oldmanId) {
        this.oldmanId = oldmanId;
    }

    public String getOldmanNo() {
        return oldmanNo;
    }

    public void setOldmanNo(String oldmanNo) {
        this.oldmanNo = oldmanNo;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOldName() {
        return oldName;
    }

    public void setOldName(String oldName) {
        this.oldName = oldName;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getOldPhone() {
        return oldPhone;
    }

    public void setOldPhone(String oldPhone) {
        this.oldPhone = oldPhone;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public Integer getOldAge() {
        return oldAge;
    }

    public void setOldAge(Integer oldAge) {
        this.oldAge = oldAge;
    }

    public String getOldIdCard() {
        return oldIdCard;
    }

    public void setOldIdCard(String oldIdCard) {
        this.oldIdCard = oldIdCard;
    }

    public String getOldAddressBdGps() {
        return oldAddressBdGps;
    }

    public void setOldAddressBdGps(String oldAddressBdGps) {
        this.oldAddressBdGps = oldAddressBdGps;
    }

    public String getOldAddress() {
        return oldAddress;
    }

    public void setOldAddress(String oldAddress) {
        this.oldAddress = oldAddress;
    }

    public Integer getOldType() {
        return oldType;
    }

    public void setOldType(Integer oldType) {
        this.oldType = oldType;
    }

    public Integer getOldMonIncome() {
        return oldMonIncome;
    }

    public void setOldMonIncome(Integer oldMonIncome) {
        this.oldMonIncome = oldMonIncome;
    }

    public Integer getEconomicSource() {
        return economicSource;
    }

    public void setEconomicSource(Integer economicSource) {
        this.economicSource = economicSource;
    }

    public Integer getmStatus() {
        return mStatus;
    }

    public void setmStatus(Integer mStatus) {
        this.mStatus = mStatus;
    }

    public Integer getNation() {
        return nation;
    }

    public void setNation(Integer nation) {
        this.nation = nation;
    }

    public Integer getOldEctLel() {
        return oldEctLel;
    }

    public void setOldEctLel(Integer oldEctLel) {
        this.oldEctLel = oldEctLel;
    }

    public String getChronicDis() {
        return chronicDis;
    }

    public void setChronicDis(String chronicDis) {
        this.chronicDis = chronicDis;
    }

    public String getCrcDisOther() {
        return crcDisOther;
    }

    public void setCrcDisOther(String crcDisOther) {
        this.crcDisOther = crcDisOther;
    }

    public String getEgNamea() {
        return egNamea;
    }

    public void setEgNamea(String egNamea) {
        this.egNamea = egNamea;
    }

    public String getEgPhonea() {
        return egPhonea;
    }

    public void setEgPhonea(String egPhonea) {
        this.egPhonea = egPhonea;
    }

    public String getEgaIdCard() {
        return egaIdCard;
    }

    public void setEgaIdCard(String egaIdCard) {
        this.egaIdCard = egaIdCard;
    }

    public String getEgaAddress() {
        return egaAddress;
    }

    public void setEgaAddress(String egaAddress) {
        this.egaAddress = egaAddress;
    }

    public Integer getRelationshipa() {
        return relationshipa;
    }

    public void setRelationshipa(Integer relationshipa) {
        this.relationshipa = relationshipa;
    }

    public String getEgNameb() {
        return egNameb;
    }

    public void setEgNameb(String egNameb) {
        this.egNameb = egNameb;
    }

    public String getEgPhoneb() {
        return egPhoneb;
    }

    public void setEgPhoneb(String egPhoneb) {
        this.egPhoneb = egPhoneb;
    }

    public Integer getOldHeadPicId() {
        return oldHeadPicId;
    }

    public void setOldHeadPicId(Integer oldHeadPicId) {
        this.oldHeadPicId = oldHeadPicId;
    }

    public String getRegistryTime() {
        return registryTime;
    }

    public void setRegistryTime(String registryTime) {
        this.registryTime = registryTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getHomeId() {
        return homeId;
    }

    public void setHomeId(Integer homeId) {
        this.homeId = homeId;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    public Integer getCreateId() {
        return createId;
    }

    public void setCreateId(Integer createId) {
        this.createId = createId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Long getModifier() {
        return modifier;
    }

    public void setModifier(Long modifier) {
        this.modifier = modifier;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Oldman other = (Oldman) that;
        return (this.getOldmanId() == null ? other.getOldmanId() == null : this.getOldmanId().equals(other.getOldmanId()))
            && (this.getOldmanNo() == null ? other.getOldmanNo() == null : this.getOldmanNo().equals(other.getOldmanNo()))
            && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))
            && (this.getOldName() == null ? other.getOldName() == null : this.getOldName().equals(other.getOldName()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getOldPhone() == null ? other.getOldPhone() == null : this.getOldPhone().equals(other.getOldPhone()))
            && (this.getBirthday() == null ? other.getBirthday() == null : this.getBirthday().equals(other.getBirthday()))
            && (this.getOldAge() == null ? other.getOldAge() == null : this.getOldAge().equals(other.getOldAge()))
            && (this.getOldIdCard() == null ? other.getOldIdCard() == null : this.getOldIdCard().equals(other.getOldIdCard()))
            && (this.getOldAddressBdGps() == null ? other.getOldAddressBdGps() == null : this.getOldAddressBdGps().equals(other.getOldAddressBdGps()))
            && (this.getOldAddress() == null ? other.getOldAddress() == null : this.getOldAddress().equals(other.getOldAddress()))
            && (this.getOldType() == null ? other.getOldType() == null : this.getOldType().equals(other.getOldType()))
            && (this.getOldMonIncome() == null ? other.getOldMonIncome() == null : this.getOldMonIncome().equals(other.getOldMonIncome()))
            && (this.getEconomicSource() == null ? other.getEconomicSource() == null : this.getEconomicSource().equals(other.getEconomicSource()))
            && (this.getmStatus() == null ? other.getmStatus() == null : this.getmStatus().equals(other.getmStatus()))
            && (this.getNation() == null ? other.getNation() == null : this.getNation().equals(other.getNation()))
            && (this.getOldEctLel() == null ? other.getOldEctLel() == null : this.getOldEctLel().equals(other.getOldEctLel()))
            && (this.getChronicDis() == null ? other.getChronicDis() == null : this.getChronicDis().equals(other.getChronicDis()))
            && (this.getCrcDisOther() == null ? other.getCrcDisOther() == null : this.getCrcDisOther().equals(other.getCrcDisOther()))
            && (this.getEgNamea() == null ? other.getEgNamea() == null : this.getEgNamea().equals(other.getEgNamea()))
            && (this.getEgPhonea() == null ? other.getEgPhonea() == null : this.getEgPhonea().equals(other.getEgPhonea()))
            && (this.getEgaIdCard() == null ? other.getEgaIdCard() == null : this.getEgaIdCard().equals(other.getEgaIdCard()))
            && (this.getEgaAddress() == null ? other.getEgaAddress() == null : this.getEgaAddress().equals(other.getEgaAddress()))
            && (this.getRelationshipa() == null ? other.getRelationshipa() == null : this.getRelationshipa().equals(other.getRelationshipa()))
            && (this.getEgNameb() == null ? other.getEgNameb() == null : this.getEgNameb().equals(other.getEgNameb()))
            && (this.getEgPhoneb() == null ? other.getEgPhoneb() == null : this.getEgPhoneb().equals(other.getEgPhoneb()))
            && (this.getOldHeadPicId() == null ? other.getOldHeadPicId() == null : this.getOldHeadPicId().equals(other.getOldHeadPicId()))
            && (this.getRegistryTime() == null ? other.getRegistryTime() == null : this.getRegistryTime().equals(other.getRegistryTime()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getHomeId() == null ? other.getHomeId() == null : this.getHomeId().equals(other.getHomeId()))
            && (this.getValid() == null ? other.getValid() == null : this.getValid().equals(other.getValid()))
            && (this.getCreateId() == null ? other.getCreateId() == null : this.getCreateId().equals(other.getCreateId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()))
            && (this.getModifier() == null ? other.getModifier() == null : this.getModifier().equals(other.getModifier()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOldmanId() == null) ? 0 : getOldmanId().hashCode());
        result = prime * result + ((getOldmanNo() == null) ? 0 : getOldmanNo().hashCode());
        result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode());
        result = prime * result + ((getOldName() == null) ? 0 : getOldName().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getOldPhone() == null) ? 0 : getOldPhone().hashCode());
        result = prime * result + ((getBirthday() == null) ? 0 : getBirthday().hashCode());
        result = prime * result + ((getOldAge() == null) ? 0 : getOldAge().hashCode());
        result = prime * result + ((getOldIdCard() == null) ? 0 : getOldIdCard().hashCode());
        result = prime * result + ((getOldAddressBdGps() == null) ? 0 : getOldAddressBdGps().hashCode());
        result = prime * result + ((getOldAddress() == null) ? 0 : getOldAddress().hashCode());
        result = prime * result + ((getOldType() == null) ? 0 : getOldType().hashCode());
        result = prime * result + ((getOldMonIncome() == null) ? 0 : getOldMonIncome().hashCode());
        result = prime * result + ((getEconomicSource() == null) ? 0 : getEconomicSource().hashCode());
        result = prime * result + ((getmStatus() == null) ? 0 : getmStatus().hashCode());
        result = prime * result + ((getNation() == null) ? 0 : getNation().hashCode());
        result = prime * result + ((getOldEctLel() == null) ? 0 : getOldEctLel().hashCode());
        result = prime * result + ((getChronicDis() == null) ? 0 : getChronicDis().hashCode());
        result = prime * result + ((getCrcDisOther() == null) ? 0 : getCrcDisOther().hashCode());
        result = prime * result + ((getEgNamea() == null) ? 0 : getEgNamea().hashCode());
        result = prime * result + ((getEgPhonea() == null) ? 0 : getEgPhonea().hashCode());
        result = prime * result + ((getEgaIdCard() == null) ? 0 : getEgaIdCard().hashCode());
        result = prime * result + ((getEgaAddress() == null) ? 0 : getEgaAddress().hashCode());
        result = prime * result + ((getRelationshipa() == null) ? 0 : getRelationshipa().hashCode());
        result = prime * result + ((getEgNameb() == null) ? 0 : getEgNameb().hashCode());
        result = prime * result + ((getEgPhoneb() == null) ? 0 : getEgPhoneb().hashCode());
        result = prime * result + ((getOldHeadPicId() == null) ? 0 : getOldHeadPicId().hashCode());
        result = prime * result + ((getRegistryTime() == null) ? 0 : getRegistryTime().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getHomeId() == null) ? 0 : getHomeId().hashCode());
        result = prime * result + ((getValid() == null) ? 0 : getValid().hashCode());
        result = prime * result + ((getCreateId() == null) ? 0 : getCreateId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode());
        result = prime * result + ((getModifier() == null) ? 0 : getModifier().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", oldmanId=").append(oldmanId);
        sb.append(", oldmanNo=").append(oldmanNo);
        sb.append(", userName=").append(userName);
        sb.append(", oldName=").append(oldName);
        sb.append(", sex=").append(sex);
        sb.append(", oldPhone=").append(oldPhone);
        sb.append(", birthday=").append(birthday);
        sb.append(", oldAge=").append(oldAge);
        sb.append(", oldIdCard=").append(oldIdCard);
        sb.append(", oldAddressBdGps=").append(oldAddressBdGps);
        sb.append(", oldAddress=").append(oldAddress);
        sb.append(", oldType=").append(oldType);
        sb.append(", oldMonIncome=").append(oldMonIncome);
        sb.append(", economicSource=").append(economicSource);
        sb.append(", mStatus=").append(mStatus);
        sb.append(", nation=").append(nation);
        sb.append(", oldEctLel=").append(oldEctLel);
        sb.append(", chronicDis=").append(chronicDis);
        sb.append(", crcDisOther=").append(crcDisOther);
        sb.append(", egNamea=").append(egNamea);
        sb.append(", egPhonea=").append(egPhonea);
        sb.append(", egaIdCard=").append(egaIdCard);
        sb.append(", egaAddress=").append(egaAddress);
        sb.append(", relationshipa=").append(relationshipa);
        sb.append(", egNameb=").append(egNameb);
        sb.append(", egPhoneb=").append(egPhoneb);
        sb.append(", oldHeadPicId=").append(oldHeadPicId);
        sb.append(", registryTime=").append(registryTime);
        sb.append(", status=").append(status);
        sb.append(", homeId=").append(homeId);
        sb.append(", valid=").append(valid);
        sb.append(", createId=").append(createId);
        sb.append(", createTime=").append(createTime);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append(", modifier=").append(modifier);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}